/* 标签页面样式 */

/* 筛选标签样式 */
.filter-tag {
    display: inline-block;
    padding: 4px 12px;
    margin: 2px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    color: #6c757d;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-tag:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
    text-decoration: none;
}

.filter-tag.active {
    background: #ff6b35;
    border-color: #ff6b35;
    color: white;
}

.filter-tag.disabled {
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
}

.filter-tag.disabled:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #adb5bd;
}

/* 标签区域 */
.tag-section {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* 商品网格布局 */
.goods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

/* 商品图片固定尺寸 */
.goods-item-image {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

/* 商品项样式 */
.goods-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.goods-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 价格标签 */
.price-tag {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
}

.price-tag.free {
    background-color: #10b981;
}

.price-tag.paid {
    background-color: #ef4444;
}

/* 收藏按钮 */
.favorite-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.favorite-btn:hover {
    background-color: white;
    color: #ef4444;
}

/* 加载更多提示 */
.loading-more {
    text-align: center;
    padding: 20px;
    color: #666;
}

.no-more-data {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.empty-state p {
    font-size: 0.875rem;
    color: #6b7280;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .goods-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 14px;
    }

    .goods-item-image {
        height: 115px;
    }
}

@media (max-width: 768px) {
    .goods-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 12px;
    }

    .goods-item-image {
        height: 100px;
    }

    .tag-section {
        padding: 0.75rem;
    }

    .filter-tag {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .empty-state {
        padding: 40px 20px;
    }

    .empty-state i {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .goods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .goods-item-image {
        height: 85px;
    }

    .tag-grid {
        gap: 0.25rem;
    }

    .filter-tag {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    .empty-state {
        padding: 30px 15px;
    }

    .empty-state i {
        font-size: 2.5rem;
    }

    .empty-state h3 {
        font-size: 1.1rem;
    }

    .empty-state p {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .goods-grid {
        gap: 8px;
    }

    .goods-item-image {
        height: 75px;
    }

    .tag-section {
        padding: 0.5rem;
    }
}
